<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<title>某某家具设计公司企业官网-模板之家</title>
<!-- 引入layui样式文件 -->
<link rel="stylesheet" type="text/css" href="layui/css/layui.css">
<!-- 引入layui脚本文件 -->
<script type="text/javascript" src="layui/layui.js" charset="UTF-8"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="images/favicon.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/default.min.css?t=227" />
<!--[if (gte IE 9)|!(IE)]><!-->
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="lib/amazeui/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
<script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
<script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="js/main.min.js?t=1"></script>
</head>
<body>
	<!-- 引入头部 -->
	<jsp:include page="head.jsp"></jsp:include>
	<div class="am-slider am-slider-default"
		data-am-flexslider="{playAfterPaused: 8000}">
		<ul class="am-slides">
			<c:forEach items="${aLlEmp}" var="ban">
				<li><img src="${ban.imag }" alt="${ban.imagName }"></li>
			</c:forEach>
		</ul>
	</div>
	<div>
		<header class="header-article-list">
			<h1>在线留言</h1>

		</header>
		<div style="text-align: center;">

			<form class="layui-inline layui-form"
				method="post">
				<!-- action="Designeridea?method=getmessage"  -->
				<!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
				<div class="layui-form-item ">
					<label class="layui-form-label">名字<span style="color: red">*</span></label>
					<div class="layui-input-block">
						<input type="text" name="name" id="name" placeholder="请输入"
							style="width: 160px" lay-verify="required" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">电话<span style="color: red">*</span></label>
					<div class="layui-input-block">
						<input type="text" name="telephone" id="telephone"
							lay-verify="phone" placeholder="请输入" autocomplete="off"
							style="width: 250px" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">邮箱<span style="color: red">*</span></label>
					<div class="layui-input-block">
						<input type="text" name="email" id="email" placeholder="请输入"
							style="width: 450px" lay-verify="email" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">留言<span style="color: red">*</span></label>
					<div class="layui-input-block">
						<textarea name="contentt" id="contentt" placeholder="请输入内容"
							style="width: 650px" lay-verify="required" class="layui-textarea"></textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
				<!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
			</form>
		</div>
	</div>
	<script src="layui.js"></script>
	<script>
		layui.use('form', function() {
			var form = layui.form;
			form.on('submit(*)', function(data) {
				$.post("Designeridea?method=getmessage",data.field, function(res) {
							console.log(res);
							if (res.code == 0) {
									layer.msg("提交成功", {
										time : 2000
									})
							}
						}, "json")
				return false;
			});
		
			//各种基于事件的操作，下面会有进一步介绍
		});
	</script>

	<jsp:include page="foot.jsp"></jsp:include>
</body>
</html>
</body>
</html>